#ifndef FILE_H
#define FILE_H

#include "include.h"

typedef struct BinaryFileInfo {
    FILE *filePointer;
    unsigned char *fileBuffer;
    unsigned int fileLength;
    char *slot;
}BinFileInfo;

typedef struct FrameInfo {
	uint32_t TotalPacket;
	uint32_t CurrentPacket;
}FrameInfo_t;

extern int File_parse(char *filename,char *slot,BinFileInfo *o_binfile_info);
extern int File_close(BinFileInfo *bin_file_info);
#endif  // !FILE_H